#ifndef __CMD_HANDLE_H_
#define __CMD_HANDLE_H_

#define SZ_NAME 8
#define SZ_ARG 32
#define SZ_COUNT 2

typedef struct command{
	char cmd_name[SZ_NAME];
	char cmd_arg_list[SZ_COUNT][SZ_ARG];
	int  cmd_arg_count;
}cmd_t;

extern int cmd_execute(char *cmd_str);
extern void init_command_struct(cmd_t *pcmd);
extern void print_command_info(cmd_t *pcmd);
extern int cmd_parse(char *cmd_str,cmd_t *pcmd);
extern int cmd_dispatch(cmd_t *pcmd);

#endif
